/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.server.rpcservice;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.aeky.client.rpcservice.GreetingRPCService;
import com.aeky.exception.AekyException;
import com.aeky.server.support.ServletUtils;

/**
 * The server side implementation of the RPC service.
 */
@Service("greetRpc")
public class GreetingRPCServiceImpl implements GreetingRPCService {

    private static final Logger LOG = LoggerFactory.getLogger(GreetingRPCServiceImpl.class);

    public String greetServer(String input) throws AekyException {
        HttpServletRequest request = ServletUtils.getRequest();
        LOG.info("call GreetingServiceImp ...");
        return input;
    }

}
